<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        $score=90;
        $put1="";
        $put2="";
        $put3="";
        $put4="";
        $put5="";      
        $g=(int)($score/10);
        switch ($g) 
        {
        case 10:
               $put1="<img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' />";
               break;
        case 9:
               $put1="<img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' />";
               break;
        case 8:
               $put2="<img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' />";
               break;
        case 7:
               $put3="<img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' />";
               break;
        case 6:
               $put4="<img src='haha.gif' width='50' height='50' />";
               break;
        default:
               $put5="<img src='cry.jpg' width='50' height='50' />";
               break;
        }
        
        
        ?>
    <table width="500" border="1">
    <tbody>
    <tr>
      <th width="134" scope="col">成绩</th>
      <th width="350" scope="col"><?php echo $score; ?></th>
    </tr>
    <tr>
      <td height="50">优秀</td>
      <td><?php echo $put1; ?></td>
    </tr>
    <tr>
      <td height="50">良好</td>
      <td><?php echo $put2; ?></td>
    </tr>
    <tr>
      <td height="50">中等</td>
      <td><?php echo $put3; ?></td>
    </tr>
    <tr>
      <td height="50">及格</td>
      <td><?php echo $put4; ?></td>
    </tr>
    <tr>
      <td height="50">不及格</td>
      <td><?php echo $put5; ?></td>
    </tr>
  </tbody>
</table>
    </body>
</html>
